Scenario 3
var message = "You did not successfully
complete the tasks within
two minutes. Please
continue through the
assessment to practice
the process.";
function startContent()
{
// code to start an internal timer
startTimer();
var timeLimitAction =
GetValue( "" );
// currentElapsedTime is a variable
// set during the startTimer() function
if ( currentElapsedTime > 120 )
{
if ( timeLimitAction ==
"" )
{
alert( message );
// continue to the next SCO
}
}
}
var message = "You did not successfully
complete the tasks within
two minutes. Please
continue through the
assessment to practice
the process.";
function startContent()
{
// code to start an internal timer
startTimer();
var timeLimitAction =
GetValue( "cmi.time_limit_action" );
// currentElapsedTime is a variable
// set during the startTimer() function
if ( currentElapsedTime > 120 )
{
if ( timeLimitAction ==
"continue,message" )
{
alert( message );
// continue to the next SCO
}
}
}